import * as http from '@api/http'

/**
 * @purpose 获取行政区域列表
 * @returns {PromiseLike<T> | Promise<T> | *}
 */
export function items (pid = 0) {
  return http
    .get('area.items', {
      pid: pid
    })
    .then(r => r.data)
}
